package com.liuhouse.service;

import com.liuhouse.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liuhouse.utils.ResponseResult;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author liuhouse
 * @since 2024-01-27
 */
public interface ICommentService extends IService<Comment> {
    //查询评论区的评论,增加了commentType参数,用于区分文章的评论区,友链的评论区
    ResponseResult commentList(String commentType, Long articleId , Integer pageNum , Integer pageSize);

    //在文章的评论区发送评论
    ResponseResult addComment(Comment comment);
}
